package org.skatiger.jrove.spring.tags;

import org.skatiger.jrove.tag.AbstractTagLibrary;

public class SpringTagsLibrary extends AbstractTagLibrary {
    public static final String NAMESPACE = "http://jrove.skatiger.org/spring";

    public SpringTagsLibrary() {
        super(NAMESPACE);
        addComponent("message", "jrove.spring.message");
        addComponent("theme", "jrove.spring.theme");
        addComponent("url", "jrove.spring.url");
        addComponent("param", "jrove.spring.param");
        addComponent("bind", "jrove.spring.bind");
        addComponent("bindErrors", "jrove.spring.bindErrors");
        addComponent("outputBindErrors", "jrove.spring.outputBindErrors");
        //        try {
        //            Method[] methods = SpringFunctions.class.getMethods();
        //            for (int i = 0; i < methods.length; i++) {
        //                if (Modifier.isStatic(methods[i].getModifiers())) {
        //                    addFunction(methods[i].getName(), methods[i]);
        //                }
        //            }
        //        } catch (Exception e) {
        //            throw new RuntimeException(e);
        //        }
    }
}